<script setup>
// 导入
import { useCounterStore } from '@/store/counter'
const counterStore = useCounterStore()
console.log(counterStore)
</script>

<template>
  <div>我是Son1.vue组件 - {{counterStore.count}} - <button @click="counterStore.addCount">+</button></div>
</template>

<style scoped>

</style>
